import request from '@/utils/request'

export function getApproveInstance(data) {
  return request({
    url: '/api/approval/flow/approve/',
    method: 'get',
    params: data
  })
}


export function createApprove(data) {
  return request({
    url: '/api/approval/flow/approve/',
    method: 'post',
    data
  })
}

export function updateApprove(id,data) {
  return request({
    url: `/api/approval/flow/approve/${id}/`,
    method: 'patch',
    data: data
  })
}
